package com.woniushop.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单明细实体类
 * 
 * @author 崔新雄
 *
 */
public class OrderInfo {

	private Integer oiid;// 订单明细id
	private Integer oid;// 订单id
	private Integer gid;// 商品id
	private BigDecimal oiprice;// 商品下单价格
	private Integer oinum;// 商品下单数量

	private String gname;// 商品名称
	private String gpic;// 商品图片
	private BigDecimal gprice;// 商品下单价格
	private Integer gstock;// 商品当前库存

	private Date odate;// 订单创建日期
	private String ono;// 订单号

	public Integer getOiid() {
		return oiid;
	}

	public void setOiid(Integer oiid) {
		this.oiid = oiid;
	}

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Integer getGid() {
		return gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public BigDecimal getOiprice() {
		return oiprice;
	}

	public void setOiprice(BigDecimal oiprice) {
		this.oiprice = oiprice;
	}

	public Integer getOinum() {
		return oinum;
	}

	public void setOinum(Integer oinum) {
		this.oinum = oinum;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public String getGpic() {
		return gpic;
	}

	public void setGpic(String gpic) {
		this.gpic = gpic;
	}

	public BigDecimal getGprice() {
		return gprice;
	}

	public void setGprice(BigDecimal gprice) {
		this.gprice = gprice;
	}

	public Integer getGstock() {
		return gstock;
	}

	public void setGstock(Integer gstock) {
		this.gstock = gstock;
	}

	public Date getOdate() {
		return odate;
	}

	public void setOdate(Date odate) {
		this.odate = odate;
	}

	public String getOno() {
		return ono;
	}

	public void setOno(String ono) {
		this.ono = ono;
	}

	@Override
	public String toString() {
		return "OrderInfo [oiid=" + oiid + ", oid=" + oid + ", gid=" + gid + ", oiprice=" + oiprice + ", oinum=" + oinum
				+ ", gname=" + gname + ", gpic=" + gpic + ", gprice=" + gprice + ", gstock=" + gstock + ", odate="
				+ odate + ", ono=" + ono + "]";
	}

}
